using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._TerritoryDesignTools._TerritorySolution
{
    /// <summary>
    /// <para>Export Territory Solution</para>
    /// <para>Exports a territory solution to a feature class. The export includes records from all levels (hierarchy) of the solution.</para>
    /// <para>将区域解决方案导出到要素类。导出包括来自解决方案的所有级别（层次结构）的记录。</para>
    /// </summary>    
    [DisplayName("Export Territory Solution")]
    public class ExportTerritorySolution : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ExportTerritorySolution()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_territory_solution">
        /// <para>Input Territory Solution</para>
        /// <para>The Territory Design solution layer that will be exported.</para>
        /// <para>将导出的 Territory Design 解决方案图层。</para>
        /// </param>
        /// <param name="_out_feature_class">
        /// <para>Output Feature Class</para>
        /// <para>The feature class that will contain the exported territory solution.</para>
        /// <para>将包含导出的 territory 解决方案的要素类。</para>
        /// </param>
        public ExportTerritorySolution(object _in_territory_solution, object _out_feature_class)
        {
            this._in_territory_solution = _in_territory_solution;
            this._out_feature_class = _out_feature_class;
        }
        public override string ToolboxName => "Territory Design Tools";

        public override string ToolName => "Export Territory Solution";

        public override string CallName => "td.ExportTerritorySolution";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_territory_solution, _out_feature_class, _output_geometry_type.GetGPValue()];

        /// <summary>
        /// <para>Input Territory Solution</para>
        /// <para>The Territory Design solution layer that will be exported.</para>
        /// <para>将导出的 Territory Design 解决方案图层。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Territory Solution")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_territory_solution { get; set; }


        /// <summary>
        /// <para>Output Feature Class</para>
        /// <para>The feature class that will contain the exported territory solution.</para>
        /// <para>将包含导出的 territory 解决方案的要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_feature_class { get; set; }


        /// <summary>
        /// <para>Output Shape Type</para>
        /// <para><xdoc>
        ///   <para>Specifies the feature geometry type to export.</para>
        ///   <bulletList>
        ///     <bullet_item>Territory Boundaries—Polygon features that represent the territory boundaries will be exported.</bullet_item><para/>
        ///     <bullet_item>Territory Centers—Point features that represent the territory centers will be exported.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定要输出的特征几何类型。</para>
        ///   <bulletList>
        ///     <bullet_item>Territory Boundaries—将输出表示 Territory 边界的面要素。</bullet_item><para/>
        ///     <bullet_item>区域中心—将输出表示区域中心的点要素。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Shape Type")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _output_geometry_type_value? _output_geometry_type { get; set; } = null;

        public enum _output_geometry_type_value
        {
            /// <summary>
            /// <para>Territory Boundaries</para>
            /// <para>Territory Boundaries—Polygon features that represent the territory boundaries will be exported.</para>
            /// <para>Territory Boundaries—将输出表示 Territory 边界的面要素。</para>
            /// </summary>
            [Description("Territory Boundaries")]
            [GPEnumValue("TERRITORY_BOUNDARIES")]
            _TERRITORY_BOUNDARIES,

            /// <summary>
            /// <para>Territory Centers</para>
            /// <para>Territory Centers—Point features that represent the territory centers will be exported.</para>
            /// <para>区域中心—将输出表示区域中心的点要素。</para>
            /// </summary>
            [Description("Territory Centers")]
            [GPEnumValue("TERRITORY_CENTERS")]
            _TERRITORY_CENTERS,

        }

        public ExportTerritorySolution SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}